var msgbox; 
//function newMsgBox(width, height, title, url)
//{
//	msgbox = new Msgbox({
//		width : width,
//		height : height,
//		title : title,
//		type : 'iframe',
//		content : url,
//		bgOpacity : 0.8,
//		allowDrag : false,
//		lock : true,
//	});
//	msgbox.show();
//}

function  closeMsgBox()
{  
	msgbox.close();
}


/**
 * 自定义公共JS方法
 */
$(function() {
	$.extend({
		
		'toAdd' : function(width, height, title, url) {
			msgbox = new $.msgbox({
				width : width,
				height : height,
				title : title,
				type : 'iframe',
				content : url,
				bgOpacity : 0.8,
				allowDrag : false,
				boxAnimate: false,
				bgAnimate: false
			}).show();
			
		},

		'toMod' : function(width, height, title, url) {
			msgbox = new $.msgbox({
				width : width,
				height : height,
				title : title,
				type : 'iframe',
				content : url,
				bgOpacity : 0.8,
				bgAnimate: false,
				allowDrag : false
			}).show();
        }
	});
});

